﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace virtuaPol.Net
{
    class Option
    {
        public string Name { get; set; }
        public event EventHandler Clicked;

        public Option()
        { }

        public Option(string name, EventHandler clickHandler)
        {
            Name = name;
            Clicked += clickHandler;
        }

        public void OnClick(object sender, EventArgs e)
        {
            if(Clicked != null)
                Clicked(sender, e);
        }

        public string toString()
        {
            return Name;
        }
    }
}
